﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true" CodeFile="PivotGrid.aspx.cs" Inherits="PivotGrid" %>

<%@ Register Assembly="DevExpress.Web.ASPxPivotGrid.v13.2, Version=13.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPivotGrid" TagPrefix="dx" %>

<%@ Register assembly="DevExpress.Web.v13.2, Version=13.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxPivotGrid.v13.2, Version=13.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPivotGrid.Export" tagprefix="dx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
    <dx:ASPxPivotGrid ID="ASPxPivotGrid1" runat="server" ClientIDMode="AutoID" 
        DataSourceID="AccessDataSource1">
        <Fields>
            <dx:PivotGridField ID="fieldID" Area="RowArea" AreaIndex="0" FieldName="ID">
            </dx:PivotGridField>
            <dx:PivotGridField ID="fieldTrademark" Area="RowArea" AreaIndex="1" 
                FieldName="Trademark">
            </dx:PivotGridField>
            <dx:PivotGridField ID="fieldModel" Area="RowArea" AreaIndex="2" 
                FieldName="Model">
            </dx:PivotGridField>
            <dx:PivotGridField ID="fieldCategory" Area="RowArea" AreaIndex="3" 
                FieldName="Category">
            </dx:PivotGridField>
            <dx:PivotGridField ID="fieldPrice" Area="RowArea" AreaIndex="4" 
                FieldName="Price">
            </dx:PivotGridField>
        </Fields>
    </dx:ASPxPivotGrid>
    <asp:AccessDataSource ID="AccessDataSource1" runat="server" 
        DataFile="~/CarsDB.mdb" 
        SelectCommand="SELECT [ID], [Trademark], [Model], [Category], [Price] FROM [Cars]">
    </asp:AccessDataSource>
    <br />
    <dx:ASPxPivotGridExporter ID="ASPxPivotGridExporter1" runat="server" 
        ASPxPivotGridID="ASPxPivotGrid1">
    </dx:ASPxPivotGridExporter>
    <br />
    <br />
    <dx:ASPxButton ID="ASPxButton1" runat="server" onclick="ASPxButton1_Click" 
        Text="ASPxButton">
    </dx:ASPxButton>
</asp:Content>

